package com.pine.dcts.service;

import com.pine.dcts.common.TaskStatusType;
import com.pine.dcts.model.TaskMeta;

import java.util.function.Consumer;

/**
 * @author xiaoyuan
 * @create 2021/1/13
 **/
public interface TaskRunnerCallback {

    TaskMeta getTaskMeta();

    String getMessage();

    TaskStatusType getTaskStatus();

    void setMessage(String message);

    void setTaskStatus(TaskStatusType taskStatus);

    void callback();
}
